import Home from '@/views/home'
import Login from '@/views/login'
import Repository from '@/views/repository'
import Editer from '@/views/editer'
import Log from '@/views/log'
import UserManage from '@/views/userManage'
import Operation from '@/views/operation'
import FrontUserManage from '@/views/userManage/components/FrontUserManage'
import BehindUserManage from '@/views/userManage/components/BehindUserManage'
import Index from '@/views/index'

export default [
    {
        path: '/',
        name: 'Login',
        redirect: '/login'
    },
    {
        path: '/login',
        name: 'Login',
        component: Login
    },
    {
        path: '/home',
        name: 'Home',
        component: Home
    },
    {
        path: '/repository',
        name: 'repository',
        component: Repository
    },
    {
        path: '/editer',
        name: 'editer',
        component: Editer
    },
    {
        path: '/log',
        name: 'log',
        component: Log
    },
    {
        path: '/userManage',
        name: 'userManage',
        component: UserManage,
        children: [
            {
              path: 'frontUserManage',
              component: FrontUserManage,
            },
            {
              path: 'behindUserManage',
              component: BehindUserManage,
            },
          ]
    },
    {
        path: '/operation',
        name: 'operation',
        component: Operation
    }
]